Skip to content

pki: honor skip_install_trust for explicit tls internal issuers#7894

Open
gautamrizwani wants to merge 1 commit into
caddyserver:masterfrom
gautamrizwani:fix/skip-install-trust-internal-tls
Open

pki: honor skip_install_trust for explicit tls internal issuers#7894
gautamrizwani wants to merge 1 commit into
caddyserver:masterfrom
gautamrizwani:fix/skip-install-trust-internal-tls

Conversation

@gautamrizwani

Copy link
Copy Markdown

Site-level tls internal creates its own CA independently of auto_https. Since buildPKIApp() only pre-registered a CA with install_trust: false when auto_https wasn't fully disabled, that CA was instead created later at runtime with trust installation left on whenever auto_https was off, silently ignoring skip_install_trust.

This adds a check that looks at each site's configured internal issuer (matched by type, so it covers both the shorthand and the explicit ca <id> form) and registers its CA with install_trust: false, regardless of auto_https.

Added tests for: the default local CA case, a custom-named CA via the explicit issuer form, and a no-regression check that no pki app is emitted when no site uses an internal issuer.

Fixes #7893

Assistance Disclosure

Traced the root cause and verified the fix, used Claude to help draft parts of the code and tests, reviewed each line before submitting.

Site-level tls internal creates its own CA independently of
auto_https, silently ignoring skip_install_trust.

Fixes caddyserver#7893
@CLAassistant

CLAassistant commented Jul 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skip_install_trust ignored by internal issuers when auto_https is off

2 participants